using System;
using System.Runtime.Serialization;

namespace TagChimp
{
    /// <summary>
    /// Raised if TagChimp rejects the ApiKey (xml response: invalid token provided)   
    /// </summary>
    /// <remarks></remarks>
    public class TagChimpApiKeyInvalidException : TagChimpException
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="T:System.Object"/> class.
        /// </summary>
        /// <remarks></remarks>
        public TagChimpApiKeyInvalidException()
        {

        }
        /// <summary>
        /// Initializes a new instance of the <see cref="TagChimpApiKeyInvalidException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <remarks></remarks>
        public TagChimpApiKeyInvalidException(string message)
            : base(message)
        {

        }
        /// <summary>
        /// Initializes a new instance of the <see cref="TagChimpApiKeyInvalidException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="innerException">The inner exception.</param>
        /// <remarks></remarks>
        public TagChimpApiKeyInvalidException(string message, Exception innerException)
            : base(message, innerException)
        {

        }
        /// <summary>
        /// Initializes a new instance of the <see cref="T:System.ApplicationException"/> class with serialized data.
        /// </summary>
        /// <param name="info">The object that holds the serialized object data.</param>
        /// <param name="context">The contextual information about the source or destination.</param>
        /// <remarks></remarks>
        protected TagChimpApiKeyInvalidException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {

        }

        /// <summary>
        /// Gets a message that describes the current exception.
        /// </summary>
        /// <returns>
        /// The error message that explains the reason for the exception, or an empty string("").
        ///   </returns>
        /// <remarks></remarks>
        public override string Message
        {
            get
            {
                return "Tag Chimp Api Key Missing";
            }
        }


    }
}
